﻿using System.Collections.Generic;

namespace QuickShare.Vsix.SqlList.Commons
{
    public class Result
    {
        public bool IsSuccess { get; set; }
        public string Message { get; set; }
        public List<string> Messages { get; set; }

        public static Result OK(string message = null, List<string> messages = null)
        {
            return new Result() { IsSuccess = true, Message = message, Messages = messages };
        }
        public static Result Fail(string message = null)
        {
            return new Result() { IsSuccess = false, Message = message };
        }
    }
}
